From: Sebastian Keller Date: Sun, 11 Aug 2013 17:54:22 +0000 (+0200) Subject: power: Display single digit minutes correctly X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3779 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0bbb2786f8abd53cd4bbb4c523b1d53c89765901;p=gnome-shell.git power: Display single digit minutes correctly https://bugzilla.gnome.org/show_bug.cgi?id=705803 --- diff --git a/js/ui/status/power.js b/js/ui/status/power.js index 07834b9f8..3e7681671 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -72,12 +72,12 @@ const Indicator = new Lang.Class({ if (state == UPower.DeviceState.DISCHARGING) { // Translators: this is : Remaining () - return _("%d\u2236%d Remaining (%d%%)".format(hours, minutes, percentage)); + return _("%d\u2236%02d Remaining (%d%%)".format(hours, minutes, percentage)); } if (state == UPower.DeviceState.CHARGING) { // Translators: this is : Until Full () - return _("%d\u2236%d Until Full (%d%%)".format(hours, minutes, percentage)); + return _("%d\u2236%02d Until Full (%d%%)".format(hours, minutes, percentage)); } // state is one of PENDING_CHARGING, PENDING_DISCHARGING